<template>
  <view class="floorGuideDetail">
    <div class="detailBox">
      <view class="img">
        <image :src="brandData.imgUrl" />
      </view>
      <div class="con">
        <rich-text :nodes="description" />
      </div>
    </div>
  </view>
</template>

<script>
import { brandgetInfo } from '@/api/api1'
const util = require('@/utils/util')

export default {
  data() {
    return {
      brandData: {},
      description: ''
    }
  },
  computed: {},
  onLoad: function(options) {
    console.log(options)
    if (options.brandId) {
      brandgetInfo({ brandId: options.brandId }).then(res => {
        const brandData = res.data
        this.brandData = brandData
        this.description = util.formatHtml(brandData.description)
      })
    }
  },
  onShow: function() {
  },
  methods: {
  }
}
</script>

<style lang="scss" scoped>
.floorGuideDetail {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  max-width: 750rpx;
  margin: auto;
  background-color: #f9f3f0;
}
.detailBox {
  position: relative;
  width: 100%;
  height: 40%;
  .img {
    position: absolute;
    top: 20%;
    left: 20rpx;
    width: 150rpx;
    height: 150rpx;
    font-size: 0;
    border-radius: 10rpx;
    overflow: hidden;
    margin: auto;
    z-index: 1;
  }
  .con {
    position: absolute;
    top: 10%;
    left: 150rpx;
    width: 70%;
    background-color: #7f4527;
    color: #fff;
    padding: 40rpx 10rpx 40rpx 40rpx;
  }
}
</style>
